#ifndef  _USART_H
#define  _USART_H

#ifdef __cplusplus
extern "C"
{
#endif

int UART_Open(int fd,char*port);
void UART_Close(int fd) ; 
int UART_Set(int fd,int speed,int flow_ctrl,int databits,int stopbits,int parity);
int UART_Init(int fd, int speed,int flow_ctrl,int databits,int stopbits,int parity) ;
int UART_Recv(int fd, char *rcv_buf,int data_len);
int UART_Send(int fd, char *send_buf,int data_len);

#ifdef __cplusplus
}
#endif

#endif